/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: ProfitAndLossTeamDAOImpl.java
 * @PageName		: 손익현황 - 팀별
 * @Date			: 오전 11:16:22
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.management.dao.impl;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.pulp.management.dao.ProfitAndLossTeamDAO;
import com.pulp.management.model.ProfitAndLossTeamInfo;

/**
 * @author 최경민
 *
 */
public class ProfitAndLossTeamDAOImpl extends SqlMapClientDaoSupport implements ProfitAndLossTeamDAO {

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.ProfitAndLossTeamDAO#getTeamColumnChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ProfitAndLossTeamInfo> getTeamColumnChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.TeamColumnChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.ProfitAndLossTeamDAO#getTeamTotalColumnChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ProfitAndLossTeamInfo> getTeamTotalColumnChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.TeamTotalColumnChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.ProfitAndLossTeamDAO#getTeamTableList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ProfitAndLossTeamInfo> getTeamTableList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.TeamTableList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.ProfitAndLossTeamDAO#getTeamPieChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ProfitAndLossTeamInfo> getTeamPieChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.TeamPieChartList", mapArgs);
	}

}
